/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */
package cn.webrx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p></p>
 * <p>Powered by webrx On 2023-04-25 16:24:56</p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
@Data
@TableName("t_book")
public class Book {
    @TableId
    //@TableId(value = "id",type = IdType.ASSIGN_ID)
    //@TableId(value = "id",type = IdType.AUTO) AUTO 代表忽略主键，让数据库自己维护（自增）
    //@TableId(value = "id",type = IdType.INPUT) 要求输入主键值
    //@TableId(value = "id",type = IdType.ASSIGN_UUID) uuid取除- 32位UUID字符串，char(32) primary key
    private Long id;
    private String name;
    private Double price;

    @TableField("author")
    private String author;
    private LocalDate pdate;
}
